package com.yusp75.myexam.com.yusp75.myexam.data

enum class QuestionFilter(val value: Int) {
    ALL(0),       // 全部问题
    FAVORITE(1),  // 收藏问题
    ONLYWRONG(2);    // 已学问题

    companion object {
        fun fromInt(value: Int) = entries.firstOrNull { it.value == value } ?: ALL
    }
}